<?php
namespace Models;
class Model {
    public $pdo = null;

    public function __construct() {
        $dsn = 'mysql:host=localhost;dbname=app01;charset=utf8';
        $this->pdo = new \PDO($dsn, 'root', '123456');
        $this->pdo->setAttribute(\PDO::ATTR_DEFAULT_FETCH_MODE, \PDO::FETCH_ASSOC);
    }

}